<?php
namespace App\Models\Admin;

class JobModel extends BaseModel
{
    /**
     * 岗位
     */

    protected $table = 'jobs';
    protected $fillable = [
        'id','name','cate','pid','del','created_at','updated_at',
    ];

    public static function getName($id){
        $one=self::where('id',$id)->select(['name'])->first();
        if($one){
            return $one->name;
        }else{
            return '';
        }
    }
}